package com.shanjupay.merchant.api;

import com.shanjupay.common.domain.BusinessException;
import com.shanjupay.merchant.api.dto.AppDTO;

import java.util.List;

/**
 *
 *  应用管理相关的接口
 *
 */
public interface AppService {

    /**
     *
     *
     * @param merchantId
     * @param app
     * @return
     */
    AppDTO createApp(Long merchantId, AppDTO app) throws BusinessException;


    /**
     *  根据商户id 查询应用
     * @param merchantId
     * @return
     * @throws BusinessException
     */
    List<AppDTO> queryAppByMerchant(Long merchantId) throws BusinessException;

    /**
     *  根据业务id 查询应用
     *
     * @param appId
     * @return
     * @throws BusinessException
     */
    AppDTO getAppById(String appId ) throws BusinessException;

}
